Open
Conversation
Added azure contributors last 30 days
| # Write to CSV | ||
| writer.writerow([project_name, repo['name'], author, data['email_contributor'], data['commits'], data['last_commit_date']]) | ||
|
|
||
| print('Data written to azure_repos_contributors.csv') |
There was a problem hiding this comment.
Semgrep found a match
Suggested change
| print('Data written to azure_repos_contributors.csv') | |
| logging.info('Data written to azure_repos_contributors.csv') |
| contributor_commits[author]['commits'] += 1 | ||
| contributor_commits[author]['last_commit_date'] = max(contributor_commits[author]['last_commit_date'], date) | ||
| contributor_commits[author]['email_contributor'] = email_contributor | ||
| print(f"{project_name} , {repo['id']}-{contributor_commits}") |
There was a problem hiding this comment.
Semgrep found a match
Suggested change
| print(f"{project_name} , {repo['id']}-{contributor_commits}") | |
| logging.info(f"{project_name} , {repo['id']}-{contributor_commits}") |
| print(f"list of repos in project: {project_name} -- {repositories}") | ||
|
|
||
| for repo in repositories: | ||
| print(f"calculating contributor count for project: {project_name} -- repo: {repo['id']}") |
There was a problem hiding this comment.
Semgrep found a match
Suggested change
| print(f"calculating contributor count for project: {project_name} -- repo: {repo['id']}") | |
| logging.info(f"calculating contributor count for project: {project_name} -- repo: {repo['id']}") |
| for project in projects: | ||
| project_name = project['name'] | ||
| repositories = get_repositories(project_name) | ||
| print(f"list of repos in project: {project_name} -- {repositories}") |
There was a problem hiding this comment.
Semgrep found a match
Suggested change
| print(f"list of repos in project: {project_name} -- {repositories}") | |
| logging.info(f"list of repos in project: {project_name} -- {repositories}") |
|
|
||
| # Get projects | ||
| projects = get_projects() | ||
| print(f"list of projects: {projects}") |
There was a problem hiding this comment.
Semgrep found a match
Suggested change
| print(f"list of projects: {projects}") | |
| logging.info(f"list of projects: {projects}") |
Contributor
|
@sebastianrevuelta what on earth are you doing writing scripts right now?! You're supposed to be out of the office. 😂 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added azure contributors last 30 days